# docker build --tag registry.yuedaowang.com/meituan:latest .

FROM registry.yuedaowang.com/java:1.8.0_242
# FROM java:mvn_repository

ENV LANG en_US.UTF-8  
ENV LANGUAGE en_US:en  
ENV LC_ALL en_US.UTF-8

ENV HOME /root
ENV SRC meituan

COPY settings.xml /usr/share/maven/conf/settings.xml

WORKDIR $HOME/$SRC

# Copy source code to docker if no git server
COPY . $HOME/$SRC

RUN mvn clean package spring-boot:repackage -Dmaven.test.skip=true

EXPOSE 9501
